/*
 * Copyright (c) 2012 by Paweł Lebioda <pawel.lebioda89@gmail.com>
 *
 * This file is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef _DEBUG_H
#define _DEBUG_H

#define BLACK 		"\033[1;90m"
#define RED		"\033[1;91m"
#define GREEN		"\033[1;92m"
#define YELLOW		"\033[1;93m"
#define BLUE		"\033[1;94m"
#define MAGENTA		"\033[1;95m"
#define CYAN		"\033[1;96m"
#define WHITE		"\033[1;97m"
#define ENDCOLOR	"\033[0m"

#ifdef DEBUG
	#ifdef DEBUG_NAME
		#define DEBUG_PRINT(fmt,args...)	printk(DEBUG_PRIOR "%s: %s: " fmt,DEBUG_NAME,__func__,## args)
	#else
		#define DEBUG_PRINT(fmt,args...)	printk(DEBUG_PRIOR fmt,## args)
	#endif
	#define DEBUG_LINE(x)		(x)
#else
	#define DEBUG_PRINT(fmt,args...)		/*Place holder*/
	#define DEBUG_LINE(x)				/*Place holder*/
#endif

#endif //_DEBUG_H

